<form class="layui-form" action="{:url()}" method="post" id="editForm">
    <div class="layui-form-item">
        <label class="layui-form-label">门店</label>
        <div class="layui-input-inline">
            <select name="shop_id" class="field-shop_id" type="select">
                <option value="">请选择</option>
                {hisi:loop table="shop" field="id,name" id="vo"}
                    <option value="{$vo['id']}">{$vo['name']}</option>
                {/hisi:loop}
            </select>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">会员名字</label>
        <div class="layui-input-inline">
            <input type="text" data-disabled class="layui-input field-nick" name="nick" autocomplete="off" placeholder="请输入名字">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">会员卡号</label>
        <div class="layui-input-inline">
            <input type="text" data-disabled class="layui-input field-sb_card" name="sb_card" autocomplete="off" placeholder="请输入会员卡号">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">登陆账号</label>
        <div class="layui-input-inline">
            <input type="text" class="layui-input field-username" name="username" value="{:time().rand(1000,9999)}" lay-verify="required" autocomplete="off" placeholder="字母、数字、下划线">
        </div>
        <div class="layui-form-mid layui-word-aux">默认就好，为以后扩展留接口</div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">登陆密码</label>
        <div class="layui-input-inline">
            <input type="password" class="layui-input" name="password" autocomplete="off" value="888888" placeholder="******">
        </div>
        <div class="layui-form-mid layui-word-aux">默认就好，为以后扩展留接口</div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">联系邮箱</label>
        <div class="layui-input-inline">
            <input type="text" class="layui-input field-email" name="email" autocomplete="off" placeholder="请输入邮箱地址">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">联系手机</label>
        <div class="layui-input-inline">
            <input type="text" class="layui-input field-mobile" name="mobile" autocomplete="off" placeholder="请输入手机号码">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">微信</label>
        <div class="layui-input-inline">
            <input type="text" class="layui-input field-vx" name="vx" autocomplete="off" placeholder="请输入微信号码">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">会员性别</label>
        <div class="layui-input-inline">
            <input type="radio" class="field-sex" name="sex" value="1" title="男" >
            <input type="radio" class="field-sex" name="sex" value="0" title="女" checked>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">生日</label>
        <div class="layui-input-inline">
            <input type="text" class="layui-input field-birthday" id="date" name="birthday" autocomplete="off" placeholder="请输入生日">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">身高</label>
        <div class="layui-input-inline">
            <input type="text" class="layui-input field-height" name="height" autocomplete="off" placeholder="请输入身高">
        </div>
        <div class="layui-form-mid layui-word-aux">CM/厘米</div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">体重</label>
        <div class="layui-input-inline">
            <input type="text" class="layui-input field-weight" name="weight" autocomplete="off" placeholder="请输入体重">
        </div>
        <div class="layui-form-mid layui-word-aux">KG/千克</div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">会员状态</label>
        <div class="layui-input-inline">
            <input type="radio" class="field-status" name="status" value="1" title="启用" checked>
            <input type="radio" class="field-status" name="status" value="0" title="禁用">
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-input-block">
            {:token()}
            <input type="hidden" class="field-id" name="id">
            <input type="hidden" class="field-group_id" name="group_id" value="1">
            <input type="hidden" name="salt" value="{:random(16, 0)}" class="field-salt" />
        </div>
    </div>
    <div class="pop-bottom-bar hisi-footer">
        <button type="submit" class="layui-btn layui-btn-normal" lay-submit="" lay-filter="formSubmit" lay-data="{pop: true, refresh: true}">提交保存</button>
        <a href="javascript:parent.layui.layer.closeAll();" class="layui-btn layui-btn-primary ml10">取消</a>
    </div>
</form>
{include file="system@block/layui" /}
<script>
layui.use(['func','laydate'], function() {

    var laydate = layui.laydate;
    laydate.render({
          elem: '#date',
          trigger:'click'
        });
    layui.func.assign({:json_encode($formData)});
});
</script>
